package com.aqian.theme.color.happy.ui.viewmodel

import androidx.lifecycle.ViewModel
import com.aqian.theme.color.happy.data.model.Wallpaper
import com.aqian.theme.color.happy.data.model.WallpaperMockData
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.StateFlow
import kotlinx.coroutines.flow.asStateFlow

class WallpaperViewModel : ViewModel() {
    private val _wallpapers = MutableStateFlow<List<Wallpaper>>(emptyList())
    val wallpapers: StateFlow<List<Wallpaper>> = _wallpapers.asStateFlow()

    init {
        loadWallpapers()
    }

    private fun loadWallpapers() {
        _wallpapers.value = WallpaperMockData.mockWallpapers
    }
}
